package cn.edu.cqie.maven_onlinexem.serviceImp;

import cn.edu.cqie.maven_onlinexem.bean.admin;
import cn.edu.cqie.maven_onlinexem.dao.AdminDao;
import cn.edu.cqie.maven_onlinexem.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminServiceImp implements AdminService {
    @Autowired
    AdminDao adminDao;
    @Override
    public boolean admin_login(admin admin) {
        List<admin> admins = adminDao.AdminLogin(admin);
        return admins.size()>0;
    }
}
